package com.bleeth.flow.web.view;

public enum ErrorCodeEnum {
    /**
     * 通用错误
     */
    COMMON_API_LOCK("您的操作太频繁，请稍后再试！", "100000000"),
    COMMON_PARAM_EMPTY("参数不允许为空！", "100000001"),
    COMMON_PARAM_ILLEGAL("参数不合法！", "100000002"),
    COMMON_PAGE_PARAM_ILLEGAL("分页参数不合法！", "100000003"),
    COMMON_NOT_PERMISSION("对不起，您的权限不足！", "100000004"),
    COMMON_LOGIN_TIME_OUT("您的账号登录已过期，请重新登录！", "999999994"),
    COMMON_SYSTEM_EXCEPTION("对不起，服务器开小差了！", "999999999"),

    DATA_UID_ERROR("数据唯一标识不存在或者存在多个相同唯一标识", "100000005"),
    EXCEL_FILE_NOT_EXIST("excel文件不存在", "100000006"),

    ;

    private final String errorMsg;
    private final String errorCode;

    ErrorCodeEnum(String errorMsg, String errorCode) {
        this.errorMsg = errorMsg;
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public String getErrorCode() {
        return errorCode;
    }

}